package com.chilly.other.pattern.strategy2;

import org.springframework.stereotype.Component;

@Component
public class StrategyB implements Strategy {
    @Override
    public void doOperation() {
        System.out.println("执行策略b");
    }

    @Override
    public String getStrategyName() {
        return "strategyB";  //此处是该策略对应前端传的值，
    }
}    
